import request from '@/utils/request'

export function fileToJson(data) {
  return request({
    url: '/api/fileToJson',
    method: 'get',
    params: data
  })
}

export function getUploadedFiles(data) {
  return request({
    url: '/api/getUploadedFiles',
    method: 'post',
    data: data
  })
}

export function deleteFile(data) {
  return request({
    url: '/api/deleteFile',
    method: 'get',
    params: data
  })
}

export function doneFile(data) {
  return request({
    url: '/api/doneFile',
    method: 'get',
    params: data,
    responseType: 'blob'
  })
}
